cagd_lib/cbzr_pwr.c:57 CagdCrvStruct *CnvrtBezier2PowerCrv(CagdCrvStruct *Crv)
n
__
n \ j-i n j j
B (t) = / (-1) ( ) ( ) t
i -- j i
j=i
n-i
Which can be derived by expanding the (1-t) term in bezier basis
function definition as:
n-i
__
n-i \ n-i j
(1-t) = / ( ) (-t) using binomial expansion.
-- j
j=0
This routine simply take the weight of each Bezier basis function B(t) and spread it into the different power basis t^j function scaled by:
Crv: To convert into Power basis function representation.